/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package umis2.nivel;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.Serializable;

/**
 *
 * @author Alex
 */
public abstract class Plataforma implements PerimetroColision, Relacionable, Serializable{

    private Rectangle rectangulo;
    private Point posicion;

    public Plataforma(){}

    public Plataforma(Point point) {
        posicion = point;
        rectangulo=new Rectangle();
    }
    
    public void setTamanio(int ancho, int alto){
        rectangulo.setSize(ancho, alto);
    }
    
    public Dimension getTamanio(){
        return rectangulo.getSize();
    }

    public Point getPosicion(){
        return posicion;
    }

    public Rectangle getRectangulo(){
        return rectangulo;
    }

    public void setLocacion(Point point){
        rectangulo.setLocation(point);
    }

    public Point getLocacion(){
        return rectangulo.getLocation();
    }

    public abstract double getAncho();

    public abstract double getAlto();

}
